package com.sz.jinzheng.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BillForm {
    private Integer id;//编号
    private Integer userId;//用户Id
    private Integer billFormId;//账单ID
    private Integer borrowInfoId;//借款信息编号
    private Integer whichIssue;//当前第几期
    private Double capital;//本金
    private Double principalAndInterest;//本息
    private Double interest;//利息
    private Integer status;//状态，1已还，0未还，-1逾期
    private Integer overdueDays;//逾期天数
    private Double penaltyRate;//罚息率
    private Double penaltyInterest;//罚息
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;//开始还款时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;//到期还款时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;//创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;//更新时间
    private Integer isDeleted;//是否删除
    private String whichbank;//哪个银行
    private String bankno;//银行卡号
    private Integer period;//借款期限
    private Integer returnMethod;//还款方式

    public BillForm(Integer borrowInfoId, Integer whichIssue) {
        this.borrowInfoId = borrowInfoId;
        this.whichIssue = whichIssue;
    }
}
